< previous page page_724 next page >

Page 724
0724-01.jpg
Figure 32.3
ActiveX documents run inside a container
and therfore do not have title bars, borders,
and other features of independent windows.
After you create the project, you can change the properties of the project and the UserDocument to descriptive names, as listed in Table 32.1. To access the properties of the project, choose Properties from the Project menu. You can access the properties of the UserDocument from the Properties window (by choosing View, Properties Window). After you set the properties, save the files of the project by clicking the Save button on the toolbar. You then have to specify names for each of the new files.
Table 32.1 Project and UserDocument Properties
PropertySetting
Project TypeActiveX EXE
Project NameActXCalc
Project DescriptionActiveX Document Loan Calculator
UserDocument NameCalcDoc

d6ef40187df115e88326dbc94f09ab9a.gif d6ef40187df115e88326dbc94f09ab9a.gif
Document Filenames
d6ef40187df115e88326dbc94f09ab9a.gif d6ef40187df115e88326dbc94f09ab9a.gif
You save the source code of ActiveX documents in a text file much the same way you save a form. The description of the UserDocument object and any controls is stored along with the code of the document in a file with the extension .DOB. This is similar to the FRM file of a form. If the interface has any graphical components, they are stored in a DOX file, similar to the FRX file for forms. When you compile your ActiveX document, you create either an EXE or DLL file, along with a VBD file. The VBD file is the one accessed by Internet Explorer. This VBD file is the "document" part of the file, similar to a DOC file from Microsoft Word.
Creating the Interface of the Document
You create the interface of your ActiveX document by drawing controls on the UserDocument object, just as you would draw them on the form of a standard program. You can use almost any

 
< previous page page_724 next page >